include_directories (.)
include_directories (../communication)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/../corba)

add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/incubSK.cc
${CMAKE_CURRENT_BINARY_DIR}/incub.hh COMMAND omniidl -bcxx
${CMAKE_CURRENT_SOURCE_DIR}/incub.idl DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/incub.idl)

ADD_LIBRARY(corba STATIC incubSK.cc CorbaHelper.cpp)

SET_TARGET_PROPERTIES(corba PROPERTIES OUTPUT_NAME incub)

INSTALL(TARGETS corba ARCHIVE DESTINATION lib)
